import React from 'react'

export const HOC=(WrappedComponent)=>{
    return class extends React.Component{
        componentDidMount(){
        }
        render(){
            const newProps={
                hoc:'hoc'
            }
            return (
                <div>
                    HOC高阶组件
                    <WrappedComponent {...newProps} />
                </div>
            )
        }
    }
}